package com.tuhao.www.common;

import java.io.Serializable;

/**
 * 统一json返回对象
 */
public class JsonResult implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6681380965875471683L;

	/**
	 * 标志 0失败 1成功
	 */
	private int flag;

	/**
	 * 状态标志位200,401,,404，500等
	 */
	private int status;

	/**
	 * 返回消息:成功或者失败由status体现，该处仅返回消息
	 */
	private String msg;

	/**
	 * 返回数据
	 */
	private Object data;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
}
